//
//  B.swift
//  testSwift
//
//  Created by zhou Can on 15/7/8.
//  Copyright (c) 2015年 zhou Can. All rights reserved.
//

import UIKit

class B: NSObject {
    var demo:String?
    
    var name:String{
        get{
            return "B"
        }
        set{
            self.demo = newValue
        }
    }
    
    var a:A?
    
    init(str:String!) {
        super.init()
        self.name = str
    }
    
    deinit{
        println("B is Deinit--- he a is \(a)")
    }
}
